<template>
  <div>
    <el-select v-model="newValue" :clearable="clearable" placeholder="">
      <el-option label="草案" value="draft"/>
      <el-option label="发布" value="published"/>
      <el-option label="删除" value="deleted"/>
    </el-select>
  </div>
</template>

<script>
export default {
  name: 'SelectRegion',
  props: {
    // v-model默认传入属性值
    value: {
      type: String,
      default() {
        return ''
      }
    },
    // 配置是否可清空(查询条件中 可以配置清空方便查询全部)
    clearable: {
      type: Boolean,
      default() {
        return false
      }
    }
  },
  data() {
    return {

    }
  },
  computed: {
    newValue: {
      get: function() {
        return this.value
      },
      set: function(value) {
        this.$emit('input', value)
      }
    }
  },
  watch: {

  },
  methods: {

  }
}
</script>

<style lang="scss" scoped>

</style>
